package com.zhiche.lisa.bms.dao.model.driver;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 线路计价里程
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
@TableName("sc_priceconf_mile")
public class PriceconfMile extends Model<PriceconfMile> {

    private static final long serialVersionUID = 1L;

    /**
     * 计价里程id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 线路ID
     */
    @TableField("route_id")
    private Integer routeId;
    /**
     * 当前里程
     */
    @TableField("current_value")
    private BigDecimal currentValue;
    /**
     * 生效日期
     */
    @TableField("effective_date")
    private Date effectiveDate;
    /**
     * 失效日期
     */
    @TableField("invalid_date")
    private Date invalidDate;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 更新时间
     */
    @TableField("gmt_update")
    private Date gmtUpdate;
    /**
     * 创建人
     */
    private String creator;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRouteId() {
        return routeId;
    }

    public void setRouteId(Integer routeId) {
        this.routeId = routeId;
    }

    public BigDecimal getCurrentValue() {
        return currentValue;
    }

    public void setCurrentValue(BigDecimal currentValue) {
        this.currentValue = currentValue;
    }

    public Date getEffectiveDate() {
        return effectiveDate;
    }

    public void setEffectiveDate(Date effectiveDate) {
        this.effectiveDate = effectiveDate;
    }

    public Date getInvalidDate() {
        return invalidDate;
    }

    public void setInvalidDate(Date invalidDate) {
        this.invalidDate = invalidDate;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtUpdate() {
        return gmtUpdate;
    }

    public void setGmtUpdate(Date gmtUpdate) {
        this.gmtUpdate = gmtUpdate;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PriceconfMile{" +
                ", id=" + id +
                ", routeId=" + routeId +
                ", currentValue=" + currentValue +
                ", effectiveDate=" + effectiveDate +
                ", invalidDate=" + invalidDate +
                ", gmtCreate=" + gmtCreate +
                ", gmtUpdate=" + gmtUpdate +
                ", creator=" + creator +
                "}";
    }
}
